using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class StartLayer : MonoBehaviour
{
    [SerializeField] private Text TextBestScore;
    [SerializeField] private Text TextBestNum;

    private void Start()
    {
        UpdateBest();
    }

    public void Show() {
        gameObject.SetActive(true);
        UpdateBest();
    }

    private void UpdateBest() {
        TextBestScore.text = GameMgr.GetInstance().Save.BestScore.ToString();
        TextBestNum.text = GameMgr.GetInstance().Save.BestNum.ToString();
    }
}
